﻿using System;
using System.Text;

namespace CeA.Reports.Atendimento.Web.WebControls {
    [Serializable]
    public class FiltroPlanejamentoEventArgs : EventArgs {
        private int m_loja;
        private int m_ano;
        private int m_mes;
        private bool m_geraGrafico;
        private bool m_exportaExcel;


        public FiltroPlanejamentoEventArgs() {
        }


        public FiltroPlanejamentoEventArgs(int loja, int ano, int mes) {
            m_loja = loja;
            m_ano = ano;
            m_mes = mes;
        }


        /// <summary>
        /// Returns a <see cref="System.String"/> that represents this instance.
        /// </summary>
        /// <returns>
        /// A <see cref="System.String"/> that represents this instance.
        /// </returns>
        public override string ToString() {
            StringBuilder sb = new StringBuilder();

            sb.AppendFormat("{0}@", base.ToString());
            sb.AppendFormat("[m_loja={0}; ", m_loja);
            sb.AppendFormat(" m_ano={0}; ", m_ano);
            sb.AppendFormat(" m_mes={0}]", m_mes);

            return sb.ToString();
        }

        #region -- GETTERS/SETTERS --------------------------------------------

        public int Loja {
            get { return m_loja; }
            set { m_loja = value; }
        }

        public int Ano {
            get { return m_ano; }
            set { m_ano = value; }
        }

        public int Mes {
            get { return m_mes; }
            set { m_mes = value; }
        }

        public bool GeraGrafico {
            get { return m_geraGrafico; }
            set { m_geraGrafico = value; }
        }


        public bool ExportaRelatorio {
            get { return m_exportaExcel; }
            set { m_exportaExcel = value; }
        }

        #endregion
    }
}
